package com.wanlian.common;

import java.util.ArrayList;
import java.util.List;

public class AddressTreeNode
{
    private String name;

    private List<AddressTreeNode> children;

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public List<AddressTreeNode> getChildren()
    {
        return children;
    }

    public void setChildren(List<AddressTreeNode> children)
    {
        this.children = children;
    }

    public void addChild(AddressTreeNode node)
    {
        if (this.children == null)
        {
            this.children = new ArrayList<>();
        }
        this.children.add(node);
    }

}
